<?php /* Smarty version Smarty-3.1.18, created on 2017-09-05 15:48:03
         compiled from "/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/footer.html" */ ?>
<?php /*%%SmartyHeaderCode:4451574935973479fa998a1-93151620%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e615b344ee6cd84de54ef27acf45feafe4a1a14a' => 
    array (
      0 => '/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/wap/footer.html',
      1 => 1504597175,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4451574935973479fa998a1-93151620',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5973479fae0415_10739468',
  'variables' => 
  array (
    'member' => 0,
    'is_pjax' => 0,
    'app' => 0,
    'act' => 0,
    'goods_name' => 0,
    'goods_desc' => 0,
    'goods_default_pic' => 0,
    'weixin_sign_package' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5973479fae0415_10739468')) {function content_5973479fae0415_10739468($_smarty_tpl) {?><input type="hidden" id="member_id" value="<?php echo $_smarty_tpl->tpl_vars['member']->value->id;?>
" />
<input type="hidden" id="member_money" value="<?php if ($_smarty_tpl->tpl_vars['member']->value->id>0) {?><?php echo $_smarty_tpl->tpl_vars['member']->value->money;?>
<?php } else { ?>0<?php }?>" />
</body>
</html>
<?php if ($_smarty_tpl->tpl_vars['is_pjax']->value==0) {?>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
var title , desc , link, imgUrl ,app ,act;
	title = "商富商城";
	desc = "商富商城进口生活馆为欧洲匈牙利JP2003 KFT公司旗下的一个以跨境O2O直购体验中心，线上线下运作模式的进口商品连锁专卖品牌。";
	link = window.location.href;
	if(link.indexOf('=')>0){
		link = link+"&reseller="+"<?php echo $_smarty_tpl->tpl_vars['member']->value->id;?>
";
	}else{
		link = link+"?reseller="+"<?php echo $_smarty_tpl->tpl_vars['member']->value->id;?>
";
	}

	imgUrl = "http://yanglanzi.b0.upaiyun.com/uploadfiles/default_pic/2016/08/20/1682010221710475.png";
	app="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
";
	act="<?php echo $_smarty_tpl->tpl_vars['act']->value;?>
";

	if(app == "goods" && act == "detail"){
		title = "<?php echo $_smarty_tpl->tpl_vars['goods_name']->value;?>
";
		desc = "<?php echo $_smarty_tpl->tpl_vars['goods_desc']->value;?>
";
		imgUrl = "<?php echo $_smarty_tpl->tpl_vars['goods_default_pic']->value;?>
";

	}

wx.config({
	debug: false,
	appId: "<?php echo $_smarty_tpl->tpl_vars['weixin_sign_package']->value['appId'];?>
",
	timestamp: "<?php echo $_smarty_tpl->tpl_vars['weixin_sign_package']->value['timestamp'];?>
",
	nonceStr: "<?php echo $_smarty_tpl->tpl_vars['weixin_sign_package']->value['nonceStr'];?>
",
	signature: "<?php echo $_smarty_tpl->tpl_vars['weixin_sign_package']->value['signature'];?>
",
	jsApiList: [
		//所有要调用的 API 都要加到这个列表中
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ'
	]
});
wx.ready(function(){
	wx.onMenuShareAppMessage({
		title: title,
		desc: desc,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});
	wx.onMenuShareTimeline({
		title: title,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});
	wx.onMenuShareQQ({
		title: title,
		desc: desc,
		link: link,
		imgUrl: imgUrl,
		success: function(res){
			//alert('已分享');
		}
	});  
});
</script>
<?php }?>
<?php }} ?>
